using System;

namespace IQIGame.Onigao.GamePlay
{
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
    public class CfgIdSelectorAttribute : Attribute
    {
        public string tableName { get; }
        /// <summary>
        /// 除了id外额外显示的配表字段（可为null）
        /// </summary>
        public string[] extraDisplayFields { get; }

        public CfgIdSelectorAttribute(string tableName, string[] extraDisplayFields = null)
        {
            this.tableName = tableName;
            this.extraDisplayFields = extraDisplayFields;
        }
    }
}
